package com.aacar.op.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DefineAppConfigLoader {

    private static Logger logger = LoggerFactory.getLogger(DefineAppConfigLoader.class);
    private static PropertiesLoader loader;

    static {
        logger.debug("加载系统配置:{}", "\"/app_config.properties\", \"/app_constant.properties\"");
        loader = new PropertiesLoader("/app_config.properties", "/app_constant.properties");
    }

    public static String getProperty(String name) {
        return loader.getProperty(name);
    }

    public static Integer getInteger(String name) {
        return loader.getInteger(name);
    }

    public static Integer getInteger(String key, Integer defaultValue) {
        return loader.getInteger(key, defaultValue);
    }


}
